package chp13;

public class Test10 {

    public static void main(String[] args) {
        //字符串拆分
        String str = "jack,tom,peter,rose,mike";
        String[] names = str.split(",");
        for (int i = 0; i < names.length; i++) {
            System.out.println(names[i]);
        }
    }
}
